/**
=====================================================================================
 CEditKeyResponse

 Description:
  CEdit Control
  Sends User WM_COMMANDs if '+' '-' or Cursor Key's UP/DOWN is pressed
  (used by CNumEdit..+/- will change the values, UP/DOWN are used like TAB, SHIFT+TAB)
=====================================================================================
**/

#pragma once


// CEditKeyResponse

#define EN_KEY_PLUS     6001
#define EN_KEY_MINUS    6002
#define EN_KEY_UP       6003
#define EN_KEY_DOWN     6004
#define EN_KEY_ENTER    6005


class CEditKeyResponse : public CEdit
{
        DECLARE_DYNAMIC(CEditKeyResponse)

    public:
        CEditKeyResponse();
        virtual ~CEditKeyResponse();

        afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
        afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
        afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);

    protected:
        DECLARE_MESSAGE_MAP()

public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
};


